package com.zhida.jiyangcenter.api

import chooongg.base.manager.app
import chooongg.http.HttpManager
import com.zhida.jiyangcenter.DEFAULT_ROW
import retrofit2.converter.gson.GsonConverterFactory
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

interface APIExamination {
    companion object {
        fun service() =
            HttpManager.create(app.applicationContext, "http://beauty.hebzd.com/api/examination/") {
                addConverterFactory(GsonConverterFactory.create())
            }.getAPI(APIExamination::class.java)
    }

    /**
     *健康体检页（列表）
     */
    @POST("list")
    @FormUrlEncoded
    suspend fun examinationList(
        @Field("city") city: String,
        @Field("longitude") longitude: Double,
        @Field("latitude") latitude: Double,
        @Field("PageNumber") PageNumber: Int,
        @Field("search") search: String,
        @Field("PageSize") PageSize: Int = DEFAULT_ROW
    ): NetResponse<StoreExaminationListEntity>

}